package cn.net.shuxing.yifu.common.service;

import cn.net.shuxing.yifu.common.bean.BaseBean;
import cn.net.shuxing.yifu.common.bean.ContentBean;
import cn.net.shuxing.yifu.common.util.CommonExample;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public class ContentService<B extends ContentBean,M extends Mapper<B>> extends BaseService<B,M> {

    public List<B> getByState(Integer state)
    {
        CommonExample example = new CommonExample(getBeanClass());
        example.equals("state",state);
        return getsByExample(example);
    }
}
